﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmListDocumentos.aspx.cs" Inherits="Box.Cliente.Administracion.frmListDocumentos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="col-md-12">     
     <div class="panel panel-primary">
    	<div class="panel-heading">
    	    <h2>Reglas de Negocio</h2>
            <a href="../Administracion/frmTipoDocumento.aspx?acc=new"  class="btn btn-default" style="text-decoration:none; margin: auto; ">Nuevo Documento</a>
    	</div>
    	<div class="panel-body">
                <div class="row">
                      <div class="col-lg-12">
                        <div class="input-group">
                        <asp:TextBox ID="txtCriterio" CssClass="form-control" runat="server"  placeholder="Ingrese Criterio de Búsqueda" />
				
                           <span class="input-group-btn">
<%--                                <button ID="btnBuscar1"   class="btn btn-default" type="button">Buscar</button>--%>
						        <asp:Button ID="btnBuscar" Text="Buscar" CssClass="btn btn-default"  runat="server"  Height="34px" />
                            </span>
                        </div>
                    </div>
                </div>
            <br />
            <asp:ListView runat="server" ID="lvDocumentos" SelectMethod="GetDocumentos"
                 ItemType="Box.Entities.TipoDocumento">
                <EditItemTemplate>
                    <b>No Existen Ventas..!!</b>
                </EditItemTemplate>
                <LayoutTemplate>
                    <table class="table table-hover table-condensed">
                        <thead>
                            <tr>
                                <th>Tipo Documento</th>
                                <th>IGV</th>
                                <th>Acción</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr id="itemPlaceholder" runat="server"/>
                        </tbody>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td><%# Item.NombreTipoDocumento %></td>
                        <td><%# Item.IGV %></td>
                        <td>
                            <a href="frmTipoDocumento.aspx?acc=editar&id= <%# Item.Id %>" class="glyphicon glyphicon-pencil label label-warning">Editar</a>
                                <a href="frmListDocumentos.aspx?acc=eliminar&id= <%# Item.Id %>" class="glyphicon glyphicon-remove label label-danger"
                                                                    onclick="return confirm('Desea Elininar a: <%# Item.NombreTipoDocumento%>');">Eliminar </a>
                        </td>
                    </tr>
                </ItemTemplate>
                    <EmptyDataTemplate>
                                                         <h3 class="message-error" align="center"><b>No existen Insumos con el criterio de búsqueda.</b></h3>
                    </EmptyDataTemplate>
            </asp:ListView>
    	</div>
    	<div></div>
    </div>
       </div>
         </ContentTemplate>
        <Triggers>
                       <asp:AsyncPostBackTrigger ControlID="btnBuscar" EventName="Click"/>
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>
